<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="cn.itcast.crm.domain.SysUser" %>
<html>
<head>
<title>客户关系管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="${pageContext.request.contextPath}/menu/css/top.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<%
	SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
	// new Date()为获取当前系统时间
	HttpSession s = request.getSession();
	
	SysUser sysUser=(SysUser)session.getAttribute("sysUserKey");
	String userName=sysUser.getName();
%>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="top">
  <tr> 
    <td class="logo">
        <div class="subNav">${userName}，欢迎您！今天是：<%out.println(df.format(new Date())); %>| <a href="#">退出
           </a> | <a href="#">帮助</a>
        </div>
    </td>
  </tr>
</table>
</body>
</html>
